import { Component, OnInit } from '@angular/core';
import { Router,ActivatedRoute  } from "@angular/router";

@Component({
  selector: 'app-myquestion',
  templateUrl: './myquestion.page.html',
  styleUrls: ['./myquestion.page.scss'],
})
export class MyquestionPage implements OnInit {
  public quertionIndex:any
  constructor(
    public activateRoute: ActivatedRoute,
  ) { }

  ngOnInit() {
    this.activateRoute.queryParams.subscribe(queryParam => {
      this.quertionIndex = queryParam.index
    })
  }

}
